package com.lhf.azkaban.springbatch.example.job.config;

import com.lhf.azkaban.springbatch.example.job.listener.MyJobListener;
import org.springframework.batch.core.configuration.annotation.JobBuilderFactory;
import org.springframework.batch.core.configuration.annotation.StepBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author:95780
 * @Date: 14:21 2019/11/21
 * @Description: 作业基础配置类  配置公共部分的载入
 */
public class BaseConfig {

    //注入创建任务对象的对象
    @Autowired
    protected JobBuilderFactory jobBuilderFactory;

    @Autowired
    protected StepBuilderFactory stepBuilderFactory;

    @Autowired
    protected MyJobListener myJobListener;
}
